<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- 提示用户输入用户名，然后再提示输入密码。如果用户名是"admin"并且密码是“888888”则提示正确 -->
    <title>Document</title>
</head>

<body>
    <script>
        var usename = prompt('请输入用户名');
        var password = prompt('请输入密码');
        if (usename === 'admin' && password === '888888') {
            alert('登陆成功')
        } else (
            alert('恭喜您号被盗了')
        )
    </script>
</body>

</html>